package com.black.common.core.domain.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 接收App用户登录对象模型
 *
 * @author: admin
 */
@ApiModel(value = "AppLoginReq", description = "App用户登录对象模型")
@Getter
@Setter
public class AppLoginReq {

    @ApiModelProperty(value = "手机号", required = true)
    @NotBlank(message = "{notBlank.username}")
    private String phone;

    @ApiModelProperty(value = "登录类型(1、账号+密码，2、手机号+验证码)")
    @NotNull(message = "登录类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "图片验证码")
    private String imgCode;

    @ApiModelProperty(value = "图片唯一标识")
    private String uuid;

    @ApiModelProperty(value = "手机验证码")
    private String mobileCode;

}
